<?php

class DefaultController extends Controller {
public  $name = "TK Rawamangun";
    public function actionIndex() {
       
        $criteria = new CDbCriteria;
        $criteria->select = "*";
        $criteria->condition = "owner=:owner";
        $criteria->params = array(":owner" => '1');
        $model = NEWSFLASH::model()->findAll($criteria);
        // renders the view file 'protected/views/site/index.php'
        // using the default layout 'protected/views/layouts/main.php'
        $this->render('index', array('model' => $model));
    }

}